// -----------------------------------------------------------------------
//  <copyright file="GetProfileQuery.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024-04-26 01:04</last-date>
// -----------------------------------------------------------------------

namespace Liuliu.Fsb.Services.Identity.Application.Identity.Users.Queries;

[AuthConfig(typeof(User), ResourceAccessType.RoleLimit, "GetProfile")]
public class GetProfileQuery : IRequest<ApiResult<ProfileOutDto>>, IQuery
{ }

public class GetProfileQueryHandler(IServiceProvider provider)
    : IRequestHandler<GetProfileQuery, ApiResult<ProfileOutDto>>
{
    public async Task<ApiResult<ProfileOutDto>> Handle(GetProfileQuery request, CancellationToken token)
    {
        var dto = new ProfileOutDto();
        return ApiResult<ProfileOutDto>.Success(dto);
    }
}

public class ProfileOutDto
{ }

